<!-- 分页链接 -->
       <div class="lists-navigator clearfix">   
         <ol class="page-navigator">
        <li class="current">
            <a href="/" data-hover="首页">
                <span>首页</span>
            </a>
        </li>
        <li class="current">
        {% if paginator.page == 1 %}
            <span>&laquo;</span>
        {% else %}
            {% if paginator.previous_page == 1 %}
            <a href="/bwarpage/">
            {% else %}
            <a href="/bwarpage{{ paginator.previous_page }}" >
            {% endif %}
                <span>&laquo;</span>
            </a>
        {% endif %}
        </li>
        {% for i in (1..paginator.total_pages) limit:9 offset:{{paginator.page-1}} %}
            {% if paginator.page == i %}
        <li class="current">
            {% else %}
        <li>
            {% endif %}
            {% if i == 1 %}
            <a href="/" data-hover="{{i}}">{{i}}</a>
            {% else %}
            <a href="/bwarpage{{i}}" data-hover="{{i}}">{{i}}</a>
            {% endif %}
        </li>
        {% endfor %}
        <li class="current">
            {% if paginator.page == paginator.total_pages %}
            <span>&raquo;</span>
            {% else %}
            <a href="/bwarpage{{ paginator.next_page }}" data-hover="&raquo;">
                <span>&raquo;</span>
            </a>
            {% endif %}
        </li>
        <li>
            <a href="/bwarpage{{paginator.total_pages}}" data-hover="末页">
                <span>末页</span>
            </a>
        </li>
        <li class="current">
            <span>第{{paginator.page}}页 / 共{{paginator.total_pages}}页</span>
      </ol> 
        
  </div>
